<?php

class Object_Document
{
    public $id;
    public $rubrica_id;
    public $rubrica_name;
    public $approve_date;
    public $updated_date;
    public $keywords;
    public $name;
    public $text;

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    public function setRubrica(Array $rubrica)
    {
        $this->rubrica_id   = (string)$rubrica['id'];
        $this->rubrica_name = (string)$rubrica['name'];
        return $this;
    }

    public function setApproveDate($approveDate)
    {
        $this->approve_date = $approveDate;
        return $this;
    }

    public function setUpdateDate($updateDate)
    {
        $this->updated_date = $updateDate;
        return $this;
    }

    public function setKeywords($keywords)
    {
        $this->keywords = $keywords;
        return $this;
    }

    public function setName($name)
    {
        $this->name = $name;
        return $this;
    }

    public function setText($text)
    {
        $this->text = $text;
        return $this;
    }
}